package com.example.permission.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class IndexController {
    // 访问根路径跳转到首页
    @GetMapping("/")
    public String index() {
        return "index"; // 对应templates/index.html
    }
}